package router

import (
	"github.com/gin-gonic/gin"
	"zoo-manage/handler"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.GET("add_article", handler.AddArticle)
	r.POST("login_user", handler.Login)
	return r
}
